package com.huanzhidadi.java8inaction.chapter7.observer;

/**
 * 观察者模式
 */
public class Client {
    public static void main(String[] args) {
        Feed f = new Feed();
        f.registerObserver(new NYTimes());
        f.registerObserver(new Guardian());

        f.notifyObservers("They found money!");

    }
}
